import Mock from 'mockjs'

let List = []
export default {
    getStatisticalData: () => {
        for(let i = 0; i < 7; i++) {
            List.push(
                Mock.mock({
                    苹果: Mock.Random.float(100,8000,0,0),
                    vivo: Mock.Random.float(100,8000,0,0),
                    oppo: Mock.Random.float(100,8000,0,0),
                    Samsung: Mock.Random.float(100,8000,0,0),
                    小米: Mock.Random.float(100,8000,0,0),
                    huawei: Mock.Random.float(100,8000,0,0),
                })
            )
        }
        return {
            code: 20000,
            data: {
                videoData: [
                    {
                        name:'小米',
                        value: 29199
                    },
                    {
                        name:'苹果',
                        value: 29919
                    },
                    {
                        name:'vivo',
                        value: 29929
                    },
                    {
                        name:'oppo',
                        value: 29939
                    },
                    {
                        name:'Samsung',
                        value: 29991
                    },
                    {
                        name:'huawei',
                        value: 29992
                    },
                ],
                userData: [
                    {
                        date: '周一',
                        new: 5,
                        active:200
                    },
                    {
                        date: '周2',
                        new: 15,
                        active:200
                    },
                    {
                        date: '周3',
                        new: 15,
                        active:200
                    },
                    {
                        date: '周4',
                        new: 25,
                        active:200
                    },
                    {
                        date: '周5',
                        new: 15,
                        active:200
                    },
                    {
                        date: '周6',
                        new: 51,
                        active:200
                    },
                    {
                        date: '周7',
                        new: 52,
                        active:200
                    },

                ],
                orderData: {
                    date:['20231001','20231002','20231003','20231004','20231005','20231006'],
                    data:List
                },
                tableData: [
                    {
                        name:'oppo',
                        todayBuy: 501,
                        monthBuy: 3500,
                        totalBuy: 22000
                    },
                    {
                        name:'vivo',
                        todayBuy: 500,
                        monthBuy: 3500,
                        totalBuy: 22000
                    },
                    {
                        name:'mi',
                        todayBuy: 504,
                        monthBuy: 3500,
                        totalBuy: 22000
                    },
                    {
                        name:'苹果',
                        todayBuy: 505,
                        monthBuy: 3500,
                        totalBuy: 22000
                    },
                    {
                        name:'huawei',
                        todayBuy: 500,
                        monthBuy: 3500,
                        totalBuy: 22000
                    },
                    {
                        name:'samsung',
                        todayBuy: 500,
                        monthBuy: 3500,
                        totalBuy: 22000
                    },
                ]
            }
        }
    }
}
